package com.tc.dao;

import com.tc.entity.UserEntity;
import com.tc.util.PasswordUtil;

public class UserDao extends BaseDao<String, UserEntity> {

    public static void main(String args[]){
        UserDao userDao=new UserDao();
        UserEntity userEntity=new UserEntity();
        userEntity.setId("zekdot");
        userEntity.setPassword(PasswordUtil.getMd5("123456"));
        try {
            userDao.save(userEntity);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
